package ke05.pm;

import java.io.File;
import java.util.Vector;

import org.apache.log4j.*;

public class DBMain {

	private static Logger logger = Logger.getRootLogger();

	public static void main(String[] args) {

		PropertyConfigurator.configureAndWatch("log4j.properties");
		// logging();

		logger.debug("Programm gestartet");
		Database db = new MiniDatenbank(new File("db.csv"));
		Vector<String> v = new Vector<String>();
		v.add("Eintrag1");
		db.write(12, v);
		logger.debug("Programm beendet!");
	}

	public static void logging() {
		Layout layout = new SimpleLayout();
		Appender console = new ConsoleAppender(layout);
		logger.addAppender(console);

		logger.setLevel(Level.DEBUG);
	}
}
